package com.cn.hotel.dao;

import com.cn.hotel.model.NewsModel;
import com.cn.hotel.model.NewsTypeModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface INewsDao {
    int getCount(NewsModel newsModel);

    List<NewsModel> findAll(NewsModel newsModel);

    int add(NewsModel newsModel);

    NewsModel findById(Integer temp);

    int newsEdit(NewsModel newsModel);

    int delete(Integer aa);
//以下前端
    List<NewsModel> getNewsModelList(Map<String,Integer> map);

    List<NewsTypeModel> getNewsTypeModelList();

    List<NewsModel> getHomeNewsModelList();

    List<NewsModel> getDetails(Integer temp);

    int getNumber(Integer temp);
}
